package com.esd.config;

import java.io.File;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class BaseConfig extends HttpServlet {

	private static final long serialVersionUID = 1L;

	public static String[] str = { "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/dx/201601/t20160108_1257161.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187242.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187241.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187240.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187239.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187237.htm",
			"http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187236.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187234.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/fw/201408/t20140827_1187230.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201409/t20140903_1190975.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201409/t20140903_1190972.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201409/t20140903_1190970.htm",
			"http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201408/t20140827_1187246.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201408/t20140827_1187245.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201408/t20140827_1187244.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/ly/201408/t20140827_1187243.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qc/201601/t20160108_1257162.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qc/201408/t20140827_1187250.htm",
			"http://www.baic.gov.cn/zxbs/htsfwb/shxfl/zx/201408/t20140827_1187254.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qt/201408/t20140827_1187270.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qt/201408/t20140827_1187269.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qt/201408/t20140827_1187264.htm", "http://www.baic.gov.cn/zxbs/htsfwb/shxfl/qt/201408/t20140827_1187261.htm", "http://www.baic.gov.cn/xxgk/gsjjj/201401/t20140108_1043413.html",
			"http://www.baic.gov.cn/xxgk/jgzn/jgsz/jgcs/", 
			"http://www.baic.gov.cn/zmhd/zxft/", 
			"http://www.baic.gov.cn/zmhd/zxft/shipin/", 
			"http://211.94.187.226:8888/cpyww.jsp", 
			"http://www.baic.gov.cn/zxbs/qtyw2/jjrzyba/jjrzy/", 
			"http://www.baic.gov.cn/zxbs/djzc/bgxz/djzc_mc/", 
			"http://www.baic.gov.cn/fjzd/dcfj/", 
			"http://www.baic.gov.cn/fjzd/dcfj/", 
			"http://www.baic.gov.cn/fjzd/xcfj/", 
			"http://www.baic.gov.cn/fjzd/cyfj/", 
			"http://www.baic.gov.cn/fjzd/hrfj/",
			"http://www.baic.gov.cn/fjzd/hdfj/", 
			"http://www.baic.gov.cn/fjzd/ftfj/", 
			"http://www.baic.gov.cn/fjzd/sjsfj/", 
			"http://www.baic.gov.cn/fjzd/mtgfj/", 
			"http://www.baic.gov.cn/fjzd/fsfj/", 
			"http://www.baic.gov.cn/fjzd/tzfj/", 
			"http://www.baic.gov.cn/fjzd/syfj/", 
			"http://www.baic.gov.cn/fjzd/myfj/", 
			"http://www.baic.gov.cn/fjzd/cpfj/", 
			"http://www.baic.gov.cn/fjzd/pgfj/", 
			"http://www.baic.gov.cn/fjzd/yqfj/", 
			"http://www.baic.gov.cn/fjzd/ysfj/",
			"http://www.baic.gov.cn/fjzd/dcfj/gzdt/201505/t20150518_1218159.htm",
			"http://www.baic.gov.cn/fjzd/dcfj/gzdt/201505/t20150518_1218162.htm",
			"http://www.baic.gov.cn/fjzd/dcfj/gzdt/201505/t20150518_1218177.htm",
			"http://www.baic.gov.cn/fjzd/dcfj/gzdt/201505/t20150518_1218178.htm",
			"http://www.baic.gov.cn/fjzd/dcfj/gzdt/201505/t20150518_1218181.htm",
			"http://www.baic.gov.cn/fjzd/xcfj/gzdt/201410/t20141014_1194197.htm",
			"http://www.baic.gov.cn/fjzd/xcfj/gzdt/201412/t20141208_1199540.htm",
			"http://www.baic.gov.cn/fjzd/xcfj/gzdt/201412/t20141208_1199543.htm",
			"http://www.baic.gov.cn/fjzd/xcfj/gzdt/201511/t20151113_1246475.htm",
			"http://www.baic.gov.cn/fjzd/xcfj/gzdt/201605/t20160524_1304117.htm",
			"http://www.baic.gov.cn/fjzd/cyfj/gzdt/201504/t20150408_1212904.htm",
			"http://www.baic.gov.cn/fjzd/cyfj/gzdt/201504/t20150408_1212905.htm",
			"http://www.baic.gov.cn/fjzd/cyfj/gzdt/201504/t20150408_1212907.htm",
			"http://www.baic.gov.cn/fjzd/cyfj/gzdt/201504/t20150408_1212908.htm",
			"http://www.baic.gov.cn/fjzd/cyfj/gzdt/201504/t20150408_1212909.htm",
			"http://www.baic.gov.cn/fjzd/hrfj/gzdt/201507/t20150727_1227549.htm",
			"http://www.baic.gov.cn/fjzd/hrfj/gzdt/201507/t20150724_1227185.htm",
			"http://www.baic.gov.cn/fjzd/hrfj/gzdt/201511/t20151112_1246263.htm",
			"http://www.baic.gov.cn/fjzd/hrfj/gzdt/201606/t20160606_1311541.htm",
			"http://www.baic.gov.cn/fjzd/hrfj/gzdt/201606/t20160629_1326992.htm",
			
			"http://www.baic.gov.cn/fjzd/hdfj/gzdt/201601/t20160125_1260687.htm",
			"http://www.baic.gov.cn/fjzd/hdfj/gzdt/201601/t20160125_1260700.htm",
			"http://www.baic.gov.cn/fjzd/hdfj/gzdt/201601/t20160125_1260714.htm",
			"http://www.baic.gov.cn/fjzd/hdfj/gzdt/201602/t20160222_1263613.htm",
			"http://www.baic.gov.cn/fjzd/hdfj/gzdt/201604/t20160413_1283102.htm",
			
			"http://www.baic.gov.cn/fjzd/ftfj/gzdt/201503/t20150327_1211529.htm",
			"http://www.baic.gov.cn/fjzd/ftfj/gzdt/201503/t20150327_1211530.htm",
			"http://www.baic.gov.cn/fjzd/ftfj/gzdt/201503/t20150331_1211924.htm",
			"http://www.baic.gov.cn/fjzd/ftfj/gzdt/201503/t20150331_1211923.htm",
			"http://www.baic.gov.cn/fjzd/ftfj/gzdt/201504/t20150404_1212492.htm",
			
	
	
			"http://www.baic.gov.cn/fjzd/sjsfj/gzdt/201504/t20150429_1215500.htm",
			"http://www.baic.gov.cn/fjzd/sjsfj/gzdt/201504/t20150429_1215506.htm",
			"http://www.baic.gov.cn/fjzd/sjsfj/gzdt/201505/t20150518_1218152.htm",
			"http://www.baic.gov.cn/fjzd/sjsfj/gzdt/201505/t20150521_1218632.htm",
			"http://www.baic.gov.cn/fjzd/sjsfj/gzdt/201507/t20150723_1227075.htm",
			
			
			
			"http://www.baic.gov.cn/fjzd/cpfj/gzdt/201601/t20160113_1258112.htm",
			"http://www.baic.gov.cn/fjzd/cpfj/gzdt/201601/t20160113_1258113.htm",
			"http://www.baic.gov.cn/fjzd/cpfj/gzdt/201601/t20160113_1258114.htm",
			"http://www.baic.gov.cn/fjzd/cpfj/gzdt/201602/t20160203_1262160.htm",
			
			"http://www.baic.gov.cn/fjzd/syfj/gzdt/201603/t20160325_1274715.htm",
			"http://www.baic.gov.cn/fjzd/syfj/gzdt/201604/t20160408_1280802.htm",
			
			
			"http://www.baic.gov.cn/fjzd/tzfj/gzdt/201312/t20131230_1041175.htm",
			"http://www.baic.gov.cn/fjzd/tzfj/gzdt/201401/t20140128_1049596.htm",
			"http://dx.baic.gov.cn/",
			"http://www.baic.gov.cn/xxgk/jgzn/jgsz/qxfj/",
			"http://www.baic.gov.cn/xxgk/jgzn/jgsz/sydw/",
			"http://www.baic.gov.cn/xxgk/jgzn/jgsz/zsjg/",
			"http://211.94.187.226:8888/business_ww/vehicle/login/jdcfjlogin/cpy_wwlogin.jsp",
			"http://wsdj.baic.gov.cn/"};

	
	public static String[] filterSuffix = { ".jpg", ".png", ".gif", ".exe", ".jpeg", ".doc", ".docx", ".xlsx", ".xls", ".ppt", ".rar", ".zip", ".pdf", "wbk", "xml" };

	public static String[] filerAttr = { "alt", "title", "src", "href", "type", "value", "rowspan", "colspan", "http-equiv", "content", "flashvars" };
	
	public static String ROOT;

	public static String IMAGE_ROOT;

	public static String JS_ROOT;

	public static String CSS_ROOT;

	public static String PG_ROOT;

	public static String TEMPLATE_ROOT;
	
	public static String HTML_ROOT;

	public static String TEST_ROOT;

	public static final String[] INDEX_URL = { "http://www.baic.gov.cn/", "http://211.94.187.231", "http://www.baic.gov.cn:7021/", "http://211.94.187.231/dcdyww/" };

	public static final String MESSAGE = "message";

	public static final String USER = "username";

	public static String time = "03:00:00";

	public void init() throws ServletException {
		ROOT = getServletContext().getRealPath("/") + "baic";
		IMAGE_ROOT = ROOT + File.separator + "etc" + File.separator + "image";
		JS_ROOT = ROOT + File.separator + "etc" + File.separator + "js";
		CSS_ROOT = ROOT + File.separator + "etc" + File.separator + "styles";
		PG_ROOT = ROOT + File.separator + "db";
		TEMPLATE_ROOT = ROOT + File.separator + "template";
		HTML_ROOT = ROOT + File.separator + "html";
		TEST_ROOT = ROOT + File.separator + "test";
	}

}
